const api = require('../utils/request.js')

module.exports = {
  goodsList(data){
    return api.request({
      url: "/wechat/goods/list",
      method: "GET",
      data
    })
  },
  orderSave(data){
    return api.request({
      url: '/wechat/goods/save',
      method:"POST",
      data
    })
  },
  getOrder(userId){
    return api.request({
      url: '/wechat/goods/getList/'+userId,
      method: "GET"
    })
  },
  delOrder(orderId){
    return api.request({
      url: '/wechat/goods/delOrder/'+orderId,
      method: "delete"
    })
  },
  goodsDelete(){
    return api.request({
      url: '/wechat/goods/delete/' + goodsId,
      method: 'delete'
    })
  },
  getQrCode(code){
    return api.request({
      url: '/wechat/goods/getQR/'+code,
      method:"GET"
    })
  },  

}

